<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>


${user.name},成功<br>
<c:choose>
		<c:when test="${empty list}">
			没有数据		
		</c:when>
		<c:otherwise>
			<c:forEach items="${list}" var="u">
				
				${u.name} &nbsp;&nbsp;  
			</c:forEach>
			<br/>
			<p>
				<a href="MainServlet?pageIndex=1">首页</a>
				<a href="MainServlet?pageIndex=${pageIndex-1}">上一页</a>
				<a href="MainServlet?pageIndex=${pageIndex+1}">下一页</a>
				<a href="MainServlet?pageIndex=${totalPage }">尾页</a>
			</p>
			
		</c:otherwise>		
	</c:choose>
	
</body>
</html>